// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import VueRouter from 'vue-router';
import Vuex from 'vuex';
import ElementUI from 'element-ui'; // 引入 Element
import 'element-ui/lib/theme-chalk/index.css';
import App from './App';
import CreateRouter from './router/router';
import CreateStore from './store/store';
import Comp from './plugins/components/index';
import Diretive from './plugins/directive/index';

Vue.config.productionTip = false;

Vue.use(VueRouter);
Vue.use(Vuex);
Vue.use(ElementUI);
Vue.use(Comp);
Vue.use(Diretive);

const router = CreateRouter();
const store = CreateStore();
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
});
